class Solution(object):
    def mostWordsFound(self, sentences):
        ans = - float('inf')
        for s in sentences:
            ans = max(ans, len(s.split(' ')))
        return ans
